package pikes.html.xhtml.list;

import java.util.LinkedList;
import java.util.List;

import pikes.html.xhtml.Inline;
import pikes.xml.XMLTag;

/**
 * <code>&lt;dt/&gt;</code> tag, see <a href="http://www.w3.org/TR/html401/struct/lists.html#h-10.3">dt element</a>
 * in HTML specification.
 * @author Peter Bona
 * @see <a href="http://www.w3.org/TR/html401/struct/lists.html#h-10.3">The dt element in HTML specification</a>
 */
public class Term extends DefinitionItem {

	private List<Inline> inlines = new LinkedList<Inline>();

	final protected CharSequence getTagName() {
		return "dt";
	}

	public void add(Inline inline) {
		inlines.add(inline);
	}

	@Override
	protected void decorateCreatedTag(XMLTag tag) {
		for (Inline inline : inlines) {
			inline.decorateTag(tag);
		}
	}

}
